﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using SerbinAV.MobileSales.Sales.Common;
using SerbinAV.MobileSales.Sales.Views;

namespace SerbinAV.MobileSales.Sales.Presenters
{
    public class PresenterFactory : IPresenterFactory
    {
        public IPresenter GetMainFormPresenter(IMainView view)
        {
            return new MainFormPresenter(Work.GetInstance(), view);
        }

        public IPresenter GetSettingsPresenter()
        {
            return new SettingsPresenter(Work.GetInstance(), new SettingsView());
        }

        public IPresenter GetDailyVisitPresenter(DateTime currentDate)
        {
            return new DailyVisitsPresenter(Work.GetInstance(), new DailyVisitView(), currentDate);
        }
    }
}
